<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
</body>
<script>
    function fun1(arr) {
        let sum = 0;
        for (let i = 0; i <arr.length ; i++) {
            if (a / 2 == 0) {
                sum++;
            }
        }
        return sum;
    }
           let arr=[2,4,5,6,7,8,10,12];
    let sum=fun1(arr)
    alert(sum)
</script>
</html>